﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UsersApplicationForms.aspx.cs" Inherits="WXYW.UsersApplicationForms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <asp:Label ID="userNameLabel" runat="server" Text=""></asp:Label>的申请单
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/AccordingToClientRecords.aspx">返回</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
 <asp:GridView ID="myApplicationGridView" CssClass="tableList" runat="server" AutoGenerateColumns="false"
        AllowPaging="true" PageSize="20" Width="100%" BorderColor="#888888" 
        BorderWidth="1px" onpageindexchanging="myApplicationGridView_PageIndexChanging"
        >
        <Columns>
            <asp:BoundField HeaderText="流水号" DataField="RunningNumber" />
            <asp:BoundField HeaderText="RMA 号" DataField="ApplicationCode" />
            <asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <%#Eval("User.UserName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="申请日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="收货日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ReceiveDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="数量">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.Count")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="状态" DataField="Status" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" />
                    <asp:LinkButton ID="viewLinkButton" OnClick="viewLinkButton_click" CommandArgument='<%#Eval("ApplicationID") %>'
                        runat="server">查看</asp:LinkButton>                 
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
